﻿@model Webcar.Entitys.gps_tj

<div style="margin:5px 5px 5px 5px">
@using (Ajax.BeginForm("GpsInstallEditSave", "Table",
    new AjaxOptions
    {
        HttpMethod = "POST",
        //OnBegin = "function(){ loadingPanel.Show(); }",
        //OnComplete = "function(){ loadingPanel.Hide(); }",
        UpdateTargetId = "error-content",
        InsertionMode = InsertionMode.Replace
    }))
{
    @Html.AntiForgeryToken()
    @Html.HiddenFor(a => a.dept_code)
    <div id="edit-car" style="width:600px">
        <table class="edit-table">
            <tr>
                <td style="width: 120px; text-align: right;">*所属单位：</td>
                <td style="width:180px">@ViewBag.DeptName</td>
                <td style="width: 120px; text-align: right">*GPS承建单位：</td>
                <td style="width:180px">@Html.TextBoxFor(a=>a.cjdw)</td>
            </tr>

            <tr>
                <td style="width: 120px; text-align: right">*承建单位联系人：</td>
                <td>@Html.TextBoxFor(a => a.cjdw_lxr)</td>
                <td style="width: 120px; text-align: right">联系人电话：</td>
                <td>@Html.TextBoxFor(a=>a.cjdw_dh)</td>
            </tr>
            
            <tr>
                <td style="width: 120px; text-align: right">*填报人：</td>
                <td>@Html.TextBoxFor(a => a.tbr)</td>
                <td style="width: 120px; text-align: right">填报人：</td>
                <td>@Html.TextBoxFor(a=>a.tbr_lxdh)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">填报日期：</td>
                <td>@Model.tbrq.Value.ToString("yyyy-MM-dd")</td>
                <td style="width: 120px; text-align: right">*监控车辆数：：</td>
                <td>@Html.TextBoxFor(a=>a.gps_num)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right;">备注：</td>
                <td colspan="3">@Html.TextAreaFor(a => a.note,5,30,new { @style = "width: 100%;" })</td>
            </tr>

        </table>
        <br />
        <div id="error-content" class="validation-errors"></div>
    </div>
    <table style="width:600px">
        <tr>
            <td style="width:550px"></td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.Name = "Button1";
                    settings.Text = "保存";
                    settings.UseSubmitBehavior = true;
                    settings.Width = 70;
                    settings.ControlStyle.CssClass = "button1";
                }).GetHtml()

            </td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.ControlStyle.CssClass = "button2";
                    settings.Name = "Button2";
                    settings.Text = "取消";
                    settings.Width = 70;
                    settings.ClientSideEvents.Click = "function(s, e){pcModalMode.Hide(); }";
                }).GetHtml()
            </td>
        </tr>

    </table>
}
</div>            